<?php

namespace pam\Factory;

/**
 * Description of ResearchServiceFactory
 *
 * @author Robert Bwana
 */
use pam\Service\ResearchService;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class ResearchServiceFactory implements FactoryInterface {

    public function createService(ServiceLocatorInterface $serviceLocator) {
        return new ResearchService(
                $serviceLocator->get('pam\Mapper\ResearchDataAccess')
        );
    }

}
